package com.open.api.wechat.pub.request;

import com.open.api.wechat.common.HttpMethod;
import com.open.api.wechat.common.WeChatCommonRequest;
import com.open.api.wechat.pub.request.condition.WeChatTemplateMessageCondition;
import com.open.api.wechat.pub.response.WeChatTemplateMessageResponse;
import com.open.api.wechat.constants.WeChatPubUrlConstants;
import lombok.Data;

/**
 * @author : zhaoxuan
 * @date : 2021/7/6 11:04
 * @description : WeChatTemplateMessageRequest
 * @version: 1.0
 */
@Data
public class WeChatTemplateMessageRequest extends WeChatCommonRequest<WeChatTemplateMessageResponse> {

    private WeChatTemplateMessageCondition condition;

    @Override
    public String getDefaultUrl() {
        return WeChatPubUrlConstants.PUB_TEMPLATE_MESSAGE;
    }

    @Override
    public Object getCondition() {
        return condition;
    }

    @Override
    public HttpMethod getMethod() {
        return HttpMethod.POST;
    }

    @Override
    public Class<WeChatTemplateMessageResponse> getResponse() {
        return WeChatTemplateMessageResponse.class;
    }
}
